    <script src="<?php echo $this->getAssetUrl('layui.js') ?>"></script>
    <script>
        //一般直接写在一个js文件中
        layui.use(['layer', 'form', 'element'], function(){
            var layer = layui.layer, form = layui.form;
        });
    </script>
    </body>
</html>